package com.example.travelservlet.entity;

import com.example.travelservlet.idclass.LikePk;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.io.Serializable;

/**
 * @author hxy
 * @date 2023/5/9 10:35
 */
@Entity
@Data
@IdClass(LikePk.class)
public class Like implements Serializable {
    @Id
    private String userId;
    @Id
    private String id;
    private int type;

}
